<?php
/*
# ------------------------------------------------------------------------
# JA Job Board Package
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/

jimport('joomla.utilities.date');

class JobBoardModelJAUserGroup extends JModel 
{
	
	function get_usergroup()
	{
		$usergroup = JobBoardConstant::getUsergroup();
		$usergroup = $usergroup['user'];
		$group = array();
		$group[0] = new stdClass();
		$group[0]->value  = 0;
		$group[0]->text = "<strong>".JText::_('Job Seeker')."</strong> - ".JText::_("JOB SEEKER DESC")."<br/><br/>";
		$group[1] = new stdClass();
		$group[1]->value = 1;
		$group[1]->text = "<strong>".JText::_('Employer')."</strong> - ".JText::_("EMPLOYER DESC");
		
		return $group;
	}
	function updateUsergroup($group)
	{
		$userdetail = JRequest::getVar('userdetail');
		if (($userdetail)&&($user->usertype!='Administrator')&&($user->usertype!='Super Administrator'))
		    {
		    	updateUserType($group);
				$permission_model= new JobBoardModelJAPermissions();
				$permission_model->initial_per();
		    }
	}
	

}

?>